<template>
  <div class="detail">
    <Header :title="'资讯详情'"></Header>
    <div class="content">
      <div class="left">
        <div class="title">
          {{ info.title }}
        </div>
        <div class="bottom">
          <span style="margin-right: 20px">{{ info.category }}</span>
          <span style="margin-right: 20px">{{ info.author_name }}</span>
          <span style="margin-right: 20px">{{ info.date }}</span>
        </div>
        <div class="content"></div>
      </div>
      <div class="right">
        <div class="title">
          <img src="../assets/logo.jpg" alt="" style="width: 100px;height: 100px;border-radius: 50%">
          <div style="font-size: 18px;letter-spacing: 1px;color: #666">忧郁的悟空仔</div>
          <div style="width: 100%;display: flex">
            <div style="flex: 1;padding: 5px 0 5px 8px"><img style="width: 100%" src="../assets/gongzhonghao.jpg" alt=""></div>
            <div style="flex: 1;padding: 5px 8px 5px 0"><img style="width: 100%" src="../assets/xiaochengxu.jpg" alt=""></div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  // @ is an alias to /src
  import Header from '@/components/header.vue'

  export default {
    name: 'Detail',
    components: {
      Header
    },
    data() {
      return {
        info: null
      }
    },
    mounted() {
      this.initData()
    },
    methods: {
      initData() {
        this.info = {}
        // window.axios.get(`api/Oil/oilInfo`).then(res => {
        //   console.log(res)
        // })
      }
    }
  }
</script>

<style lang="scss" scoped>
  .detail {
    padding: 20px;
    width: 1060px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0 auto;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    word-break: break-all;
    color: #333;

    .content {
      width: 1020px;
      display: flex;

      .left {
        width: 720px;

        .card {
          margin: 15px 0;
          cursor: pointer;

          .title {
            margin-bottom: 10px;
          }

          .img {
            display: flex;
            margin-bottom: 10px;

            .img-item {
              flex: 1 1 33.33%;
              height: 120px;

              img {
                height: 100%;
                width: auto;
              }
            }
          }

          .bottom {
            font-size: 14px;
            color: #999999;
          }
        }
      }
      .right {
        flex: 1;
        display: flex;
        justify-content: center;
        .title {
          width: 300px;
          height: 400px;
          text-align: center;
          border: solid 1px #f9f9f9;
          box-shadow: 2px 2px 2px #f9f9f9;
          border-radius: 5px;
          padding: 20px 0;
        }
      }
    }
  }
</style>
